<!DOCTYPE html>
<html>
  <head>
    <title>form edit</title>
    <link href="css/bootstrap/css/bootstrap.css?2023" rel="stylesheet" type="text/css" />
  </head>
  <body>

<div class="container">

<div class="row">
    <ol class="breadcrumb">
        <li><a href="/fd">表单设计器</a> <span class="divider">/</span></li>
        <li><a href="/fd/forms">实例</a> <span class="divider">/</span></li>
        <li class="active">表单数据 [<%= form.form_name %>]</li>
     </ol>
</div>

<div class="row">

<p>
    <a href="/fd/data_edit?form_id=<%= form.id %>" class="btn btn-info btn-sm"><span class="glyphicon glyphicon-plus"></span> 添加</a>
</p>

	<table class="table table-bordered">
		<tr><th>ID</th><th>标识</th><th>最后修改时间</th><th>添加时间</th><th>操作</th></tr>
		<% data.forEach(data => { %>
			<tr><td><%= data.id %></td>
				<td><%= data.name %></td>
				<td><%= data.update_time %></td>
				<td><%= data.create_time %></td>
				<td>
					<a href="/fd/data_view?form_id=<%= form.id %>&data_id=<%= data.id %>" ><span class="glyphicon glyphicon-eye-open"></span> 查看</a>&nbsp;&nbsp;&nbsp;&nbsp;
					<a href="/fd/data_edit?form_id=<%= form.id %>&data_id=<%= data.id %>"><span class="glyphicon glyphicon-edit"></span> 编辑</a>
				</td>
			</tr>
		<% }) %>
	</table>

</div><!--end row-->
</div><!--end container-->

</body>
</html>